class Comment < ActiveRecord::Base
	
	attr_accessible :content, :document, :owner, :parent, :parent_id, :created_by, :updated_by
	
	# Validations:
	validates :content, presence: true
	validates :document, presence: true
	validates :owner, presence: true
	
	# Relationships:
	belongs_to :document
	belongs_to :owner, class_name: 'User'
	
	has_ancestry
	
end
